<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Borrowers
 *
 * @ORM\Table(name="borrowers", indexes={@ORM\Index(name="Identity", columns={"Identity"})})
 * @ORM\Entity
 */
class Borrowers
{
    /**
     * @var string
     *
     * @ORM\Column(name="Name", type="string", length=200, nullable=false)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="AgreementBorrowersName", type="string", length=200, nullable=true)
     */
    private $agreementborrowersname;

    /**
     * @var string
     *
     * @ORM\Column(name="Identity", type="string", length=18, nullable=false)
     */
    private $identity;

    /**
     * @var string
     *
     * @ORM\Column(name="Telephone", type="string", length=100, nullable=false)
     */
    private $telephone;

    /**
     * @var string
     *
     * @ORM\Column(name="Type", type="string", nullable=false)
     */
    private $type;

    /**
     * @var integer
     *
     * @ORM\Column(name="BID", type="smallint")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $bid;



    /**
     * Set name
     *
     * @param string $name
     *
     * @return Borrowers
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set agreementborrowersname
     *
     * @param string $agreementborrowersname
     *
     * @return Borrowers
     */
    public function setAgreementborrowersname($agreementborrowersname)
    {
        $this->agreementborrowersname = $agreementborrowersname;

        return $this;
    }

    /**
     * Get agreementborrowersname
     *
     * @return string
     */
    public function getAgreementborrowersname()
    {
        return $this->agreementborrowersname;
    }

    /**
     * Set identity
     *
     * @param string $identity
     *
     * @return Borrowers
     */
    public function setIdentity($identity)
    {
        $this->identity = $identity;

        return $this;
    }

    /**
     * Get identity
     *
     * @return string
     */
    public function getIdentity()
    {
        return $this->identity;
    }

    /**
     * Set telephone
     *
     * @param string $telephone
     *
     * @return Borrowers
     */
    public function setTelephone($telephone)
    {
        $this->telephone = $telephone;

        return $this;
    }

    /**
     * Get telephone
     *
     * @return string
     */
    public function getTelephone()
    {
        return $this->telephone;
    }

    /**
     * Set type
     *
     * @param string $type
     *
     * @return Borrowers
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type
     *
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Get bid
     *
     * @return integer
     */
    public function getBid()
    {
        return $this->bid;
    }
}
